﻿@{
    ViewData["Title"] = "Index";
    Layout = "~/Areas/Console/Views/Shared/_Layout.cshtml";
}
@section head{
    <script type="text/javascript">
        var wireTransfer, remittanceAccount, cryptoCurrency;
        var fromCurrency, depositCurrency;
        var channelId;
        var mothod = 1;
        var price;
        var renderTable;
        var userType = 0;
        layui.config({
            base: '../../layuiadmin/' //静态资源所在路径
        }).extend({
            treetable: 'treetable-lay/treetable',
            index: 'lib/index',
            qrcode: 'qrcode/qrcode'
        }).use(['table', 'form', 'treetable', 'index', 'upload', 'qrcode'], function () {
            var $ = layui.$
                , form = layui.form
                , admin = layui.admin
                , upload = layui.upload
                , table = layui.table
                , element = layui.element
                , treetable = layui.treetable;
            top.SetListPageLanguage(layui);

            function GetWireTransfer() {
                //电汇账户开始
                $.getJSON("/Deposit/WireTransfer", function (result) {
                    let plat = result.data;
                    wireTransfer = result.data;
                    $("#wireTransferCurrency").empty();
                    plat.forEach(function (v) {
                        $('#wireTransferCurrency').append(new Option(v.bank, v.id));
                    });
                    if (result.data.length > 0) {
                        $('#payee').html(wireTransfer[0].payee);
                        $('#payeenumber').html(wireTransfer[0].accountNumber);
                        $('#payeeaddress').html(wireTransfer[0].payeeAddress);
                        $('#payeebank').html(wireTransfer[0].bank);
                        $('#swiftcode').html(wireTransfer[0].swiftcode);
                        $('#bankaddress').html(wireTransfer[0].bankAddress);
                        $('#minimum').html(wireTransfer[0].minimum.toFixed(2));
                        $('#maximum').html(wireTransfer[0].maximum.toFixed(2));
                        channelId = $('select[name="wireTransferCurrency"] option:selected').val();
                        $('#noneDepositCard').hide();
                        $('#depositCard').show();
                        $('#depositPayCard').show();
                    }
                    else {
                        $('#noneDepositCard').show();
                        $('#depositCard').hide();
                        $('#depositPayCard').hide();
                    }
                    layui.form.render("select");
                });
            }
            GetWireTransfer();

            form.on('select(wireTransferCurrency)', function (data) {
                wireTransfer.forEach(function (v) {
                    if (v.id == data.value) {
                        $('#payee').html(v.payee);
                        $('#payeenumber').html(v.accountNumber);
                        $('#payeeaddress').html(v.payeeAddress);
                        $('#payeebank').html(v.bank);
                        $('#swiftcode').html(v.swiftcode);
                        $('#bankaddress').html(v.bankAddress);
                        $('#minimum').html(v.minimum.toFixed(2));
                        $('#maximum').html(v.maximum.toFixed(2));
                        channelId = v.id;
                    }
                });
                form.render();
            });

            //电汇账户结束
            function GetRemittanceAccount() {
                //汇款账户开始
                $.getJSON("/Deposit/RemittanceAccount", function (result) {
                    let plat = result.data;
                    remittanceAccount = result.data;
                    $("#remittanceAccountCurrency").empty();
                    plat.forEach(function (v) {
                        $('#remittanceAccountCurrency').append(new Option(v.bank, v.id));
                    });
                    if (result.data.length > 0) {
                        $('#accountname').html(remittanceAccount[0].payee);
                        $('#accountnumber').html(remittanceAccount[0].accountNumber);
                        $('#bank').html(remittanceAccount[0].bank);
                        $('#branchname').html(remittanceAccount[0].branchName);
                        $('#qrcode').attr("src", remittanceAccount[0].qrcode);
                        channelId = $('select[name="remittanceAccountCurrency"] option:selected').val();
                        $('#noneDepositCard').hide();
                        $('#depositCard').show();
                        $('#depositPayCard').show();
                    }
                    else {
                        $('#noneDepositCard').show();
                        $('#depositCard').hide();
                        $('#depositPayCard').hide();
                    }
                    layui.form.render("select");
                });
            }

            form.on('select(remittanceAccountCurrency)', function (data) {
                remittanceAccount.forEach(function (v) {
                    if (v.id == data.value) {
                        $('#accountname').html(v.payee);
                        $('#accountnumber').html(v.accountNumber);
                        $('#bank').html(v.bank);
                        $('#branchname').html(v.branchName);
                        $('#qrcode').attr("src", v.qrcode);
                        $('#minimum').html(v.minimum.toFixed(2));
                        $('#maximum').html(v.maximum.toFixed(2));
                        channelId = v.id;
                    }
                });
                form.render();
            });
            //汇款账户结束

            function GetCryptocurrency() {
                //加密货币
                $.getJSON("/Deposit/Cryptocurrency", function (result) {
                    let plat = result.data;
                    cryptoCurrency = result.data;
                    $("#cryptoCurrency").empty();
                    plat.forEach(function (v) {
                        $('#cryptoCurrency').append(new Option(v.currency, v.id));
                    });
                    if (result.data.length > 0) {
                        $('#network').html(cryptoCurrency[0].network);
                        $('#receivingaddress').html(cryptoCurrency[0].receivingAddress);
                        $('#ccqrcode').empty();
                        $('#ccqrcode').qrcode({
                            render: "canvas",  //table
                            width: 96,
                            height: 96,
                            text: cryptoCurrency[0].receivingAddress
                        });
                        channelId = $('select[name="cryptoCurrency"] option:selected').val();
                        $('#noneDepositCard').hide();
                        $('#depositCard').show();
                        $('#depositPayCard').show();
                    }
                    else {
                        $('#noneDepositCard').show();
                        $('#depositCard').hide();
                        $('#depositPayCard').hide();
                    }
                    layui.form.render("select");
                });
            }

            form.on('select(cryptoCurrency)', function (data) {
                cryptoCurrency.forEach(function (v) {
                    if (v.id == data.value) {
                        $('#network').html(v.network);
                        $('#receivingaddress').html(v.receivingAddress);
                        $('#ccqrcode').empty();
                        $('#ccqrcode').qrcode({
                            render: "canvas",  //table
                            width: 96,
                            height: 96,
                            text: v.receivingAddress
                        });
                        $('#minimum').html(v.minimum.toFixed(2));
                        $('#maximum').html(v.maximum.toFixed(2));
                        channelId = v.id;
                    }
                });
                form.render();
            });
            //加密货币

            //TAB切换
            element.on('tab(deposit)', function (elem) {
                var selectVal;
                mothod = elem.index + 1
                if (elem.index == 0) {
                    GetWireTransfer();
                }
                else if (elem.index == 1) {
                    GetRemittanceAccount();
                }
                else if (elem.index == 2) {
                    GetCryptocurrency();
                }
                console.log(channelId);
            });


            //入金提交
            form.on('submit(submitDeposit)', function (data) {
                var depositamount = $("#depositamount").val().trim().replace(/,/g, '');
                var certificate = $("#certificate").attr('src')
                var remarks = $("#remark").val()
                layui.layer.confirm(top.lang.confirmDeposit, {
                    title: top.lang.confirmTitle,
                    btn: [top.lang.confirmBtn, top.lang.closeBtn]
                }, function (index, layero) {
                    $.ajax({
                        type: "POST",
                        url: "/Deposit/Deposit",
                        data: {
                            "channelId": channelId,
                            "mothod": mothod,
                            "depositamount": depositamount,
                            "certificate": certificate,
                            "remarks": remarks,
                        },
                        async: true,
                        error: function (request) {
                            alert("Connection error");
                        },
                        beforeSend: function (xhr) {
                            layui.layer.load();
                        },
                        success: function (data) {
                            var item = eval(data);
                            if (item.code == 0) {
                                top.ShowMessageByKey(layui, item.msg, 6, 1000, function () {
                                    location.reload();
                                });
                            } else {
                                top.ShowMessageByKey(layui, item.msg, 0, 1000);
                            }
                            layer.closeAll('loading');
                        }
                    });
                });
                return false;
            });

            $("#gotoSetPersonal").click(function () {
                parent.layui.index.openTabsPage("/Personal/Index");
                //初始化导航选项卡（选中新建标签卡）
                parent.layui.element.render('nav');
            });

            //拖拽上传
            upload.render({
                elem: '#uploadCertificate,#changeOne'
                , url: '/Base/UploadFile' //此处用的是第三方的 http 请求演示，实际使用时改成您自己的上传接口即可。
                , done: function (res) {
                    top.ShowMessageByKey(layui, res.msg, 0, 1000);
                    $('#uploadDemoView').removeClass('layui-hide').find('img').attr('src', res.data.src);
                }
            });

            //复制
            $('#remove').click(function () {
                $('#uploadDemoView').val('').addClass('layui-hide').find('img').attr('src', '');
                //$('#certificate').addClass('').attr('src', '');

            })

            //图片预览事件
            $('#qrcode').click(function (e) {
                previewImg(this);
                e.stopPropagation()
            });

            //图片预览事件
            $('#uploadDemoView img').click(function (e) {
                previewImg(this);
                e.stopPropagation()
            });

            //复制
            $('.copy').click(function () {
                var cont = $(this).prev().text();
                var tempInput = $("<input>");
                $("body").append(tempInput);
                tempInput.val(cont).select();
                document.execCommand("copy");
                tempInput.remove();
                top.ShowMessageByKey(layui, "copySuccess", 6, 5000);
            })

            //图片预览事件
            $('#ccqrcode').click(function () {
                var url = $('#receivingaddress').html()
                var tempInput = $("<div style='overflow:auto;display:flex;align-items:center;justify-content:center;max-width: 100%;max-height: 100%'><div id='showqrcode' style='max-width: 100%;max-height: 100%;position: absolute;top: 50%;transform: translateY(-50%);'></div></div>");
                $("body").append(tempInput);

                $('#showqrcode').qrcode({
                    render: "canvas", //也可以替换为table
                    width: 200,
                    height: 200,
                    text: url
                });
                //弹出层
                layer.open({
                    type: 1,
                    shade: true,
                    shade: [0.4, '#000000'],
                    title: false, //不显示标题
                    area: ['70%', '70%'],
                    //maxWidt: 360,
                    //maxHeight: 360,
                    content: tempInput,
                    cancel: function () {
                        tempInput.remove();
                    }
                });
            });

            //光标进入，去除金额千分位，并去除小数后面多余的0
            $("#depositamount").focus(function () {
                var oldMny = this.value.replace(/,/g, '');
                if (oldMny.indexOf(".") > 0) {
                    oldMny = oldMny.replace(/0+?$/, "");//去除尾部多余的0
                    oldMny = oldMny.replace(/[.]$/, "");//如果最后一位是.则去掉
                }
                this.value = oldMny;
            });
            //光标离开输入的金额四舍五入并保留4位小数
            $("#depositamount").blur(function () {
                var obj = this.value;
                var mnyReg = /^([1-9][0-9]*|(([0]\.[0-9]{0,2}[1-9]\d*|[1-9][0-9]*\.\d*)))$/;//根据需求修改
                if (!(mnyReg.test(obj))) {
                    top.AlertByKey(layui, "enterNotIsNumber", 0);
                    return;
                }
                var n = 2; //保留得小数位
                obj = parseFloat(obj).toFixed(n);
                var left = obj.split(".")[0].split("").reverse();
                var right = obj.split(".")[1];
                var total = new Array();
                for (i = 0; i < left.length; i++) {
                    total.push(left[i]);
                    if ((i + 1) % 3 == 0 && (i + 1) != left.length) {
                        total.push(",");
                    }
                }
                $("#depositamount").val(total.reverse().join("") + "." + right);
            });

            //光标进入，去除金额千分位，并去除小数后面多余的0
            $("#depositamount").focus(function () {
                var oldMny = this.value.replace(/,/g, '');
                if (oldMny.indexOf(".") > 0) {
                    oldMny = oldMny.replace(/0+?$/, "");//去除尾部多余的0
                    oldMny = oldMny.replace(/[.]$/, "");//如果最后一位是.则去掉
                }
                this.value = oldMny;
            });
        });
    </script>
}
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
        @if (ViewBag.hasMt5User)
        {
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body" style="text-align:center;">
                        <blockquote class="layui-elem-quote" id="setPersonal" lay-event="setPersonal">请先完善您的个人信息</blockquote>
                        <button type="button" class="layui-btn" id="gotoSetPersonal" lay-event="gotoSePersonal">立即前往</button>
                    </div>
                </div>
            </div>
        }
        else
        {
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body">
                        <div class="layui-tab layui-tab-brief" lay-filter="deposit">
                            <ul class="layui-tab-title">
                                <li lay-event="wireTransfer" class="layui-this">电汇账户</li>
                                <li lay-event="remittanceAccount">汇款账户</li>
                                <li lay-event="cryptoCurrency">数字货币</li>
                            </ul>
                            <div class="layui-tab-content" id="depositCard" style="display:none;">
                                <div class="layui-tab-item layui-show">
                                    <form class="layui-form">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="choosebanktitle" style="width:100px;">选择汇款银行</label>
                                            <div class="layui-input-block" style="margin-left:130px;">
                                                <select name="wireTransferCurrency" id="wireTransferCurrency" lay-filter="wireTransferCurrency">
                                                </select>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="payeetitle" style="width:100px;">银行户名</label>
                                            <label class="form-label" style="padding-left:0px; text-align:left;" name="payee" id="payee"></label>
                                            <svg t="1694828036446" class="icon layui-form-label  copy" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1485" width="200" height="200">
                                                <path d="M371.2 550.4c0 19.2 19.2 38.4 38.4 38.4H768c25.6 0 38.4-19.2 38.4-38.4S787.2 512 768 512H416c-25.6 0-44.8 19.2-44.8 38.4z" p-id="1486"></path>
                                                <path d="M934.4 236.8L691.2 19.2c-6.4-6.4-12.8-6.4-19.2-12.8h-6.4c-12.8-6.4-19.2-6.4-32-6.4h-320c-44.8 0-83.2 32-83.2 70.4V128h-64c-44.8 0-83.2 32-83.2 70.4v755.2c0 38.4 38.4 70.4 83.2 70.4h563.2c44.8 0 83.2-32 83.2-70.4V896h64c44.8 0 83.2-32 83.2-70.4V288c0-19.2-12.8-38.4-25.6-51.2z m-262.4-128L832 249.6h-153.6V108.8z m57.6 844.8H166.4V198.4h64v627.2c0 38.4 38.4 70.4 83.2 70.4h416v57.6z m147.2-128H307.2V70.4h281.6v179.2c6.4 38.4 38.4 70.4 89.6 70.4h198.4v505.6z" p-id="1487"></path>
                                                <path d="M697.6 640H416c-25.6 0-38.4 19.2-38.4 38.4s19.2 38.4 38.4 38.4h281.6c25.6 0 38.4-19.2 38.4-38.4 6.4-19.2-12.8-38.4-38.4-38.4zM416 454.4h211.2c25.6 0 38.4-19.2 38.4-38.4s-19.2-38.4-38.4-38.4H416c-25.6 6.4-44.8 25.6-44.8 44.8 0 19.2 19.2 32 44.8 32z" p-id="1488"></path>
                                            </svg>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="payeenumbertitle" style="width:100px;">银行账号</label>
                                            <label class="form-label" style="padding-left:0px; text-align:left;" name="payeenumber" id="payeenumber"></label>
                                            <svg t="1694828036446" class="icon layui-form-label  copy" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1485" width="200" height="200">
                                                <path d="M371.2 550.4c0 19.2 19.2 38.4 38.4 38.4H768c25.6 0 38.4-19.2 38.4-38.4S787.2 512 768 512H416c-25.6 0-44.8 19.2-44.8 38.4z" p-id="1486"></path>
                                                <path d="M934.4 236.8L691.2 19.2c-6.4-6.4-12.8-6.4-19.2-12.8h-6.4c-12.8-6.4-19.2-6.4-32-6.4h-320c-44.8 0-83.2 32-83.2 70.4V128h-64c-44.8 0-83.2 32-83.2 70.4v755.2c0 38.4 38.4 70.4 83.2 70.4h563.2c44.8 0 83.2-32 83.2-70.4V896h64c44.8 0 83.2-32 83.2-70.4V288c0-19.2-12.8-38.4-25.6-51.2z m-262.4-128L832 249.6h-153.6V108.8z m57.6 844.8H166.4V198.4h64v627.2c0 38.4 38.4 70.4 83.2 70.4h416v57.6z m147.2-128H307.2V70.4h281.6v179.2c6.4 38.4 38.4 70.4 89.6 70.4h198.4v505.6z" p-id="1487"></path>
                                                <path d="M697.6 640H416c-25.6 0-38.4 19.2-38.4 38.4s19.2 38.4 38.4 38.4h281.6c25.6 0 38.4-19.2 38.4-38.4 6.4-19.2-12.8-38.4-38.4-38.4zM416 454.4h211.2c25.6 0 38.4-19.2 38.4-38.4s-19.2-38.4-38.4-38.4H416c-25.6 6.4-44.8 25.6-44.8 44.8 0 19.2 19.2 32 44.8 32z" p-id="1488"></path>
                                            </svg>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="payeeaddresstitle" style="width:100px;">联邦清算号</label>
                                            <label class="form-label" style="padding-left:0px; text-align:left;" name="payeeaddress" id="payeeaddress"></label>
                                            <svg t="1694828036446" class="icon layui-form-label  copy" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1485" width="200" height="200">
                                                <path d="M371.2 550.4c0 19.2 19.2 38.4 38.4 38.4H768c25.6 0 38.4-19.2 38.4-38.4S787.2 512 768 512H416c-25.6 0-44.8 19.2-44.8 38.4z" p-id="1486"></path>
                                                <path d="M934.4 236.8L691.2 19.2c-6.4-6.4-12.8-6.4-19.2-12.8h-6.4c-12.8-6.4-19.2-6.4-32-6.4h-320c-44.8 0-83.2 32-83.2 70.4V128h-64c-44.8 0-83.2 32-83.2 70.4v755.2c0 38.4 38.4 70.4 83.2 70.4h563.2c44.8 0 83.2-32 83.2-70.4V896h64c44.8 0 83.2-32 83.2-70.4V288c0-19.2-12.8-38.4-25.6-51.2z m-262.4-128L832 249.6h-153.6V108.8z m57.6 844.8H166.4V198.4h64v627.2c0 38.4 38.4 70.4 83.2 70.4h416v57.6z m147.2-128H307.2V70.4h281.6v179.2c6.4 38.4 38.4 70.4 89.6 70.4h198.4v505.6z" p-id="1487"></path>
                                                <path d="M697.6 640H416c-25.6 0-38.4 19.2-38.4 38.4s19.2 38.4 38.4 38.4h281.6c25.6 0 38.4-19.2 38.4-38.4 6.4-19.2-12.8-38.4-38.4-38.4zM416 454.4h211.2c25.6 0 38.4-19.2 38.4-38.4s-19.2-38.4-38.4-38.4H416c-25.6 6.4-44.8 25.6-44.8 44.8 0 19.2 19.2 32 44.8 32z" p-id="1488"></path>
                                            </svg>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="payeebanktitle" style="width:100px;">汇款银行</label>
                                            <label class="form-label" style="padding-left:0px; text-align:left;" name="payeebank" id="payeebank"></label>
                                            <svg t="1694828036446" class="icon layui-form-label  copy" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1485" width="200" height="200">
                                                <path d="M371.2 550.4c0 19.2 19.2 38.4 38.4 38.4H768c25.6 0 38.4-19.2 38.4-38.4S787.2 512 768 512H416c-25.6 0-44.8 19.2-44.8 38.4z" p-id="1486"></path>
                                                <path d="M934.4 236.8L691.2 19.2c-6.4-6.4-12.8-6.4-19.2-12.8h-6.4c-12.8-6.4-19.2-6.4-32-6.4h-320c-44.8 0-83.2 32-83.2 70.4V128h-64c-44.8 0-83.2 32-83.2 70.4v755.2c0 38.4 38.4 70.4 83.2 70.4h563.2c44.8 0 83.2-32 83.2-70.4V896h64c44.8 0 83.2-32 83.2-70.4V288c0-19.2-12.8-38.4-25.6-51.2z m-262.4-128L832 249.6h-153.6V108.8z m57.6 844.8H166.4V198.4h64v627.2c0 38.4 38.4 70.4 83.2 70.4h416v57.6z m147.2-128H307.2V70.4h281.6v179.2c6.4 38.4 38.4 70.4 89.6 70.4h198.4v505.6z" p-id="1487"></path>
                                                <path d="M697.6 640H416c-25.6 0-38.4 19.2-38.4 38.4s19.2 38.4 38.4 38.4h281.6c25.6 0 38.4-19.2 38.4-38.4 6.4-19.2-12.8-38.4-38.4-38.4zM416 454.4h211.2c25.6 0 38.4-19.2 38.4-38.4s-19.2-38.4-38.4-38.4H416c-25.6 6.4-44.8 25.6-44.8 44.8 0 19.2 19.2 32 44.8 32z" p-id="1488"></path>
                                            </svg>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="swiftcodetitle" style="width:100px;">SWIFT Code</label>
                                            <label class="form-label" style="padding-left:0px; text-align:left;" name="swiftcode" id="swiftcode"></label>
                                            <svg t="1694828036446" class="icon layui-form-label  copy" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1485" width="200" height="200">
                                                <path d="M371.2 550.4c0 19.2 19.2 38.4 38.4 38.4H768c25.6 0 38.4-19.2 38.4-38.4S787.2 512 768 512H416c-25.6 0-44.8 19.2-44.8 38.4z" p-id="1486"></path>
                                                <path d="M934.4 236.8L691.2 19.2c-6.4-6.4-12.8-6.4-19.2-12.8h-6.4c-12.8-6.4-19.2-6.4-32-6.4h-320c-44.8 0-83.2 32-83.2 70.4V128h-64c-44.8 0-83.2 32-83.2 70.4v755.2c0 38.4 38.4 70.4 83.2 70.4h563.2c44.8 0 83.2-32 83.2-70.4V896h64c44.8 0 83.2-32 83.2-70.4V288c0-19.2-12.8-38.4-25.6-51.2z m-262.4-128L832 249.6h-153.6V108.8z m57.6 844.8H166.4V198.4h64v627.2c0 38.4 38.4 70.4 83.2 70.4h416v57.6z m147.2-128H307.2V70.4h281.6v179.2c6.4 38.4 38.4 70.4 89.6 70.4h198.4v505.6z" p-id="1487"></path>
                                                <path d="M697.6 640H416c-25.6 0-38.4 19.2-38.4 38.4s19.2 38.4 38.4 38.4h281.6c25.6 0 38.4-19.2 38.4-38.4 6.4-19.2-12.8-38.4-38.4-38.4zM416 454.4h211.2c25.6 0 38.4-19.2 38.4-38.4s-19.2-38.4-38.4-38.4H416c-25.6 6.4-44.8 25.6-44.8 44.8 0 19.2 19.2 32 44.8 32z" p-id="1488"></path>
                                            </svg>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="bankaddresstitle" style="width:100px;">汇款银行地址</label>
                                            <label class="form-label" style="padding-left:0px; text-align:left;" name="bankaddress" id="bankaddress"></label>
                                            <svg t="1694828036446" class="icon layui-form-label  copy" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1485" width="200" height="200">
                                                <path d="M371.2 550.4c0 19.2 19.2 38.4 38.4 38.4H768c25.6 0 38.4-19.2 38.4-38.4S787.2 512 768 512H416c-25.6 0-44.8 19.2-44.8 38.4z" p-id="1486"></path>
                                                <path d="M934.4 236.8L691.2 19.2c-6.4-6.4-12.8-6.4-19.2-12.8h-6.4c-12.8-6.4-19.2-6.4-32-6.4h-320c-44.8 0-83.2 32-83.2 70.4V128h-64c-44.8 0-83.2 32-83.2 70.4v755.2c0 38.4 38.4 70.4 83.2 70.4h563.2c44.8 0 83.2-32 83.2-70.4V896h64c44.8 0 83.2-32 83.2-70.4V288c0-19.2-12.8-38.4-25.6-51.2z m-262.4-128L832 249.6h-153.6V108.8z m57.6 844.8H166.4V198.4h64v627.2c0 38.4 38.4 70.4 83.2 70.4h416v57.6z m147.2-128H307.2V70.4h281.6v179.2c6.4 38.4 38.4 70.4 89.6 70.4h198.4v505.6z" p-id="1487"></path>
                                                <path d="M697.6 640H416c-25.6 0-38.4 19.2-38.4 38.4s19.2 38.4 38.4 38.4h281.6c25.6 0 38.4-19.2 38.4-38.4 6.4-19.2-12.8-38.4-38.4-38.4zM416 454.4h211.2c25.6 0 38.4-19.2 38.4-38.4s-19.2-38.4-38.4-38.4H416c-25.6 6.4-44.8 25.6-44.8 44.8 0 19.2 19.2 32 44.8 32z" p-id="1488"></path>
                                            </svg>
                                        </div>
                                    </form>
                                </div>
                                <div class="layui-tab-item">
                                    <form class="layui-form">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="choosebanktitle" style="width:100px;">选择汇款银行</label>
                                            <div class="layui-input-block" style="margin-left:130px;">
                                                <select name="remittanceAccountCurrency" id="remittanceAccountCurrency" lay-filter="remittanceAccountCurrency">
                                                </select>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="accountnametitle" style="width:100px;">银行户名</label>
                                            <label class="form-label" style="padding-left:0px; text-align:left;" name="accountname" id="accountname"></label>
                                            <svg t="1694828036446" class="icon layui-form-label  copy" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1485" width="200" height="200">
                                                <path d="M371.2 550.4c0 19.2 19.2 38.4 38.4 38.4H768c25.6 0 38.4-19.2 38.4-38.4S787.2 512 768 512H416c-25.6 0-44.8 19.2-44.8 38.4z" p-id="1486"></path>
                                                <path d="M934.4 236.8L691.2 19.2c-6.4-6.4-12.8-6.4-19.2-12.8h-6.4c-12.8-6.4-19.2-6.4-32-6.4h-320c-44.8 0-83.2 32-83.2 70.4V128h-64c-44.8 0-83.2 32-83.2 70.4v755.2c0 38.4 38.4 70.4 83.2 70.4h563.2c44.8 0 83.2-32 83.2-70.4V896h64c44.8 0 83.2-32 83.2-70.4V288c0-19.2-12.8-38.4-25.6-51.2z m-262.4-128L832 249.6h-153.6V108.8z m57.6 844.8H166.4V198.4h64v627.2c0 38.4 38.4 70.4 83.2 70.4h416v57.6z m147.2-128H307.2V70.4h281.6v179.2c6.4 38.4 38.4 70.4 89.6 70.4h198.4v505.6z" p-id="1487"></path>
                                                <path d="M697.6 640H416c-25.6 0-38.4 19.2-38.4 38.4s19.2 38.4 38.4 38.4h281.6c25.6 0 38.4-19.2 38.4-38.4 6.4-19.2-12.8-38.4-38.4-38.4zM416 454.4h211.2c25.6 0 38.4-19.2 38.4-38.4s-19.2-38.4-38.4-38.4H416c-25.6 6.4-44.8 25.6-44.8 44.8 0 19.2 19.2 32 44.8 32z" p-id="1488"></path>
                                            </svg>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="accountnumbertitle" style="width:100px;">银行账号</label>
                                            <label class="form-label" style="padding-left:0px; text-align:left;" name="accountnumber" id="accountnumber"></label>
                                            <svg t="1694828036446" class="icon layui-form-label  copy" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1485" width="200" height="200">
                                                <path d="M371.2 550.4c0 19.2 19.2 38.4 38.4 38.4H768c25.6 0 38.4-19.2 38.4-38.4S787.2 512 768 512H416c-25.6 0-44.8 19.2-44.8 38.4z" p-id="1486"></path>
                                                <path d="M934.4 236.8L691.2 19.2c-6.4-6.4-12.8-6.4-19.2-12.8h-6.4c-12.8-6.4-19.2-6.4-32-6.4h-320c-44.8 0-83.2 32-83.2 70.4V128h-64c-44.8 0-83.2 32-83.2 70.4v755.2c0 38.4 38.4 70.4 83.2 70.4h563.2c44.8 0 83.2-32 83.2-70.4V896h64c44.8 0 83.2-32 83.2-70.4V288c0-19.2-12.8-38.4-25.6-51.2z m-262.4-128L832 249.6h-153.6V108.8z m57.6 844.8H166.4V198.4h64v627.2c0 38.4 38.4 70.4 83.2 70.4h416v57.6z m147.2-128H307.2V70.4h281.6v179.2c6.4 38.4 38.4 70.4 89.6 70.4h198.4v505.6z" p-id="1487"></path>
                                                <path d="M697.6 640H416c-25.6 0-38.4 19.2-38.4 38.4s19.2 38.4 38.4 38.4h281.6c25.6 0 38.4-19.2 38.4-38.4 6.4-19.2-12.8-38.4-38.4-38.4zM416 454.4h211.2c25.6 0 38.4-19.2 38.4-38.4s-19.2-38.4-38.4-38.4H416c-25.6 6.4-44.8 25.6-44.8 44.8 0 19.2 19.2 32 44.8 32z" p-id="1488"></path>
                                            </svg>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="banktitle" style="width:100px;">汇款银行</label>
                                            <label class="form-label" style="padding-left:0px; text-align:left;" name="bank" id="bank"></label>
                                            <svg t="1694828036446" class="icon layui-form-label  copy" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1485" width="200" height="200">
                                                <path d="M371.2 550.4c0 19.2 19.2 38.4 38.4 38.4H768c25.6 0 38.4-19.2 38.4-38.4S787.2 512 768 512H416c-25.6 0-44.8 19.2-44.8 38.4z" p-id="1486"></path>
                                                <path d="M934.4 236.8L691.2 19.2c-6.4-6.4-12.8-6.4-19.2-12.8h-6.4c-12.8-6.4-19.2-6.4-32-6.4h-320c-44.8 0-83.2 32-83.2 70.4V128h-64c-44.8 0-83.2 32-83.2 70.4v755.2c0 38.4 38.4 70.4 83.2 70.4h563.2c44.8 0 83.2-32 83.2-70.4V896h64c44.8 0 83.2-32 83.2-70.4V288c0-19.2-12.8-38.4-25.6-51.2z m-262.4-128L832 249.6h-153.6V108.8z m57.6 844.8H166.4V198.4h64v627.2c0 38.4 38.4 70.4 83.2 70.4h416v57.6z m147.2-128H307.2V70.4h281.6v179.2c6.4 38.4 38.4 70.4 89.6 70.4h198.4v505.6z" p-id="1487"></path>
                                                <path d="M697.6 640H416c-25.6 0-38.4 19.2-38.4 38.4s19.2 38.4 38.4 38.4h281.6c25.6 0 38.4-19.2 38.4-38.4 6.4-19.2-12.8-38.4-38.4-38.4zM416 454.4h211.2c25.6 0 38.4-19.2 38.4-38.4s-19.2-38.4-38.4-38.4H416c-25.6 6.4-44.8 25.6-44.8 44.8 0 19.2 19.2 32 44.8 32z" p-id="1488"></path>
                                            </svg>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="branchnametitle" style="width:100px;">支行名称</label>
                                            <label class="form-label" style="padding-left:0px; text-align:left;" name="branchname" id="branchname"></label>
                                            <svg t="1694828036446" class="icon layui-form-label  copy" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1485" width="200" height="200">
                                                <path d="M371.2 550.4c0 19.2 19.2 38.4 38.4 38.4H768c25.6 0 38.4-19.2 38.4-38.4S787.2 512 768 512H416c-25.6 0-44.8 19.2-44.8 38.4z" p-id="1486"></path>
                                                <path d="M934.4 236.8L691.2 19.2c-6.4-6.4-12.8-6.4-19.2-12.8h-6.4c-12.8-6.4-19.2-6.4-32-6.4h-320c-44.8 0-83.2 32-83.2 70.4V128h-64c-44.8 0-83.2 32-83.2 70.4v755.2c0 38.4 38.4 70.4 83.2 70.4h563.2c44.8 0 83.2-32 83.2-70.4V896h64c44.8 0 83.2-32 83.2-70.4V288c0-19.2-12.8-38.4-25.6-51.2z m-262.4-128L832 249.6h-153.6V108.8z m57.6 844.8H166.4V198.4h64v627.2c0 38.4 38.4 70.4 83.2 70.4h416v57.6z m147.2-128H307.2V70.4h281.6v179.2c6.4 38.4 38.4 70.4 89.6 70.4h198.4v505.6z" p-id="1487"></path>
                                                <path d="M697.6 640H416c-25.6 0-38.4 19.2-38.4 38.4s19.2 38.4 38.4 38.4h281.6c25.6 0 38.4-19.2 38.4-38.4 6.4-19.2-12.8-38.4-38.4-38.4zM416 454.4h211.2c25.6 0 38.4-19.2 38.4-38.4s-19.2-38.4-38.4-38.4H416c-25.6 6.4-44.8 25.6-44.8 44.8 0 19.2 19.2 32 44.8 32z" p-id="1488"></path>
                                            </svg>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="qrcodetitle" style="width:100px;">汇款二维码</label>
                                            <img class="head-img" name="qrcode" id="qrcode" width="96" height="96">
                                            @*<label class="layui-form-label" style="padding-left:0px; text-align:left;" name="qrcode" id="qrcode"></label>*@
                                        </div>
                                    </form>
                                </div>
                                <div class="layui-tab-item">
                                    <form class="layui-form">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="chooesCurrency" style="width:100px;">选择币种类型</label>
                                            <div class="layui-input-block" style="margin-left:130px;">
                                                <select name="cryptoCurrency" id="cryptoCurrency" lay-filter="cryptoCurrency">
                                                </select>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="receivingaddresstitle" style="width:100px;">货币地址</label>
                                            <label class="form-label" style="padding-left:0px; text-align:left;" name="receivingaddress" id="receivingaddress"></label>
                                            <svg t="1694828036446" class="icon layui-form-label  copy" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1485" width="200" height="200">
                                                <path d="M371.2 550.4c0 19.2 19.2 38.4 38.4 38.4H768c25.6 0 38.4-19.2 38.4-38.4S787.2 512 768 512H416c-25.6 0-44.8 19.2-44.8 38.4z" p-id="1486"></path>
                                                <path d="M934.4 236.8L691.2 19.2c-6.4-6.4-12.8-6.4-19.2-12.8h-6.4c-12.8-6.4-19.2-6.4-32-6.4h-320c-44.8 0-83.2 32-83.2 70.4V128h-64c-44.8 0-83.2 32-83.2 70.4v755.2c0 38.4 38.4 70.4 83.2 70.4h563.2c44.8 0 83.2-32 83.2-70.4V896h64c44.8 0 83.2-32 83.2-70.4V288c0-19.2-12.8-38.4-25.6-51.2z m-262.4-128L832 249.6h-153.6V108.8z m57.6 844.8H166.4V198.4h64v627.2c0 38.4 38.4 70.4 83.2 70.4h416v57.6z m147.2-128H307.2V70.4h281.6v179.2c6.4 38.4 38.4 70.4 89.6 70.4h198.4v505.6z" p-id="1487"></path>
                                                <path d="M697.6 640H416c-25.6 0-38.4 19.2-38.4 38.4s19.2 38.4 38.4 38.4h281.6c25.6 0 38.4-19.2 38.4-38.4 6.4-19.2-12.8-38.4-38.4-38.4zM416 454.4h211.2c25.6 0 38.4-19.2 38.4-38.4s-19.2-38.4-38.4-38.4H416c-25.6 6.4-44.8 25.6-44.8 44.8 0 19.2 19.2 32 44.8 32z" p-id="1488"></path>
                                            </svg>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="qrcodetitle" style="width:100px;">二维码地址</label>
                                            <div class="head-img" name="ccqrcode" id="ccqrcode"></div>
                                            @*<label class="layui-form-label" style="padding-left:0px; text-align:left;" name="qrcode" id="qrcode"></label>*@
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" lay-event="networktitle" style="width:100px;">区块链网络</label>
                                            <label class="form-label" style="padding-left:0px; text-align:left;" name="network" id="network"></label>
                                            <svg t="1694828036446" class="icon layui-form-label  copy" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1485" width="200" height="200">
                                                <path d="M371.2 550.4c0 19.2 19.2 38.4 38.4 38.4H768c25.6 0 38.4-19.2 38.4-38.4S787.2 512 768 512H416c-25.6 0-44.8 19.2-44.8 38.4z" p-id="1486"></path>
                                                <path d="M934.4 236.8L691.2 19.2c-6.4-6.4-12.8-6.4-19.2-12.8h-6.4c-12.8-6.4-19.2-6.4-32-6.4h-320c-44.8 0-83.2 32-83.2 70.4V128h-64c-44.8 0-83.2 32-83.2 70.4v755.2c0 38.4 38.4 70.4 83.2 70.4h563.2c44.8 0 83.2-32 83.2-70.4V896h64c44.8 0 83.2-32 83.2-70.4V288c0-19.2-12.8-38.4-25.6-51.2z m-262.4-128L832 249.6h-153.6V108.8z m57.6 844.8H166.4V198.4h64v627.2c0 38.4 38.4 70.4 83.2 70.4h416v57.6z m147.2-128H307.2V70.4h281.6v179.2c6.4 38.4 38.4 70.4 89.6 70.4h198.4v505.6z" p-id="1487"></path>
                                                <path d="M697.6 640H416c-25.6 0-38.4 19.2-38.4 38.4s19.2 38.4 38.4 38.4h281.6c25.6 0 38.4-19.2 38.4-38.4 6.4-19.2-12.8-38.4-38.4-38.4zM416 454.4h211.2c25.6 0 38.4-19.2 38.4-38.4s-19.2-38.4-38.4-38.4H416c-25.6 6.4-44.8 25.6-44.8 44.8 0 19.2 19.2 32 44.8 32z" p-id="1488"></path>
                                            </svg>
                                        </div>
                                    </form>
                                </div>
                            </div>
                            <div id="noneDepositCard" style="display:none;margin-top: 50px;">
                                <blockquote class="layui-elem-quote" id="noneDeposit" lay-event="noneDeposit">暂无收款信息</blockquote>
                            </div>
                        </div>

                        <form class="layui-form" id="depositPayCard" style="display:none;">
                            <fieldset class="layui-elem-field layui-field-title">
                            </fieldset>
                            <div class="layui-form-item">
                                <label class="layui-form-label" lay-event="mt5usertitle" style="width:100px;">MT5账号</label>
                                <div class="layui-input-block" style="margin-left:130px;">
                                    <label class="layui-form-label  mt5user" id="mt5user" name="mt5user" lay-event="mt5user">@ViewBag.login</label>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-group">
                                    <div class="layui-input-prefix" lay-event="depositamountitle">充值金额</div>
                                    <input type="text" class="layui-input" id="depositamount" name="depositamount">
                                    <div class="layui-input-split layui-input-suffix" id="depositcurrency" name="depositcurrency">
                                        USD
                                    </div>
                                    <label class="layui-form"><span id="depositScope" style="margin: 0px 10px;">充值金额为整数，充值范围</span><span id="minimum"></span> USD~<span id="maximum"></span> USD</label>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-group">
                                    <div class="layui-input-prefix"  id="depositFeesTitle" lay-event="depositFeesTitle">手续费</div>
                                    <label class="form-label" style="padding-left:0px; text-align:left;" name="depositFeestip" id="depositFeestip" lay-event="depositFeestip">充值手续费将以实际为准，从充值金额扣除</label>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label" style="width:100px;" id="certificateTitle" lay-event="certificateTitle">转账凭证</label>
                                <div class="layui-upload-drag" id="uploadCertificate">
                                    <i class="layui-icon" style="vertical-align: middle;"></i>
                                    <label lay-event="clickUpload">点击上传</label>
                                    <div class="layui-hide" id="uploadDemoView">
                                        <hr>
                                        <img src="" style="max-width: 100px;max-height: 100px;" id="certificate">
                                    </div>
                                </div>
                                <button type="button" class="layui-btn" id="changeOne">换一张</button>
                                <button type="button" class="layui-btn layui-btn-danger" id="remove">移除</button>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label" style="width:100px;" lay-event="remark">备注</label>
                                <div class="layui-input-block" style="margin-left:130px;">
                                    <input type="text" autocomplete="off" placeholder="备注" class="layui-input" id="remark">
                                </div>
                            </div>
                            <div  class="tips">@Html.Raw(ViewBag.rechargeWarmPrompt)</div>
                            <div class="layui-form-item">
                                <div class="layui-input-block" style="margin-left:130px;">
                                    <button type="submit" class="layui-btn" lay-submit lay-filter="submitDeposit">立即提交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        }
    </div>
</div>